<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>User</title>
</head>
<body>
<table id="user_table" border="1">
    <tr>
        <td>编号</td>
        <td>姓名</td>
        <td>性别</td>
        <td>地址</td>
    </tr>
    <#list users as u>
        <tr>
            <td>${u.id}</td>
            <td>${u.name}</td>
            <td>
                <#--<#if u.gender==0>
                    男
                <#elseif u.gender==1>
                    女
                <#else>
                    未知
                </#if>-->
                <#switch u.gender>
                    <#case 0>男<#break >
                    <#case 1>女<#break >
                    <#default >未知<#break >
                </#switch>
            </td>

            <td>${u.address}</td>
        </tr>
    </#list>
</table>
</body>
</html>